<!doctype html>
<html>
<head>
  <meta charset="utf-8">
    <title>Youdao Dictionary</title> 
    <link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
  <div class="input-container">
    <input id="query-word" type="text" name="" placeholder="" value="" class="input-area">
    <button id="search" class="query-button"></button>
  </div>

  <div id="query-result" class="result-container unshow"></div>

  <div class="tips-container unshow" id="tips">
    <p>
      Tips: 你可以通过“Ctrl+Shift+F”快速启动词典，
      也可以在<span id="key-set" class="link">这里</span>自定义快捷键哦:)
    </p>
    <p>
      Tips 2: 如出现无法查词的问题，请在设置中关闭使用 HTTPS 接口
    </p>
    <div id="turn-off-tips">不再显示Tips</div>
  </div>

  <div class="setting-block" id="settings">
    <div class="top-menu">
      <input type="checkbox" name="linkQuery" id="linkQuery"><label for="linkQuery">使用 shift 辅助链接划词</label>
      <a href="#" title="如果想对某个链接上的单词进行划词，为避免无法取词的问题，可以按住shift键，此时链接会变成可取词的状态，这样就可以轻松划词查词啦:)" class="link-query help">(鼠标悬停查看说明)</a>
    </div>
    <div class="top-menu">
      <input type="checkbox" name="useHttps" id="useHttps"><label for="useHttps">开启 HTTPS 接口</label>
      <a href="#" title="如果出现无法查词的问题，建议关闭此选项" class="link-query help">(说明)</a>
    </div>
    <hr class="carved">
    <div class="top-menu">
      <input type="radio" name="selectMode" id="noSelect"><label for="noSelect">关闭划词翻译功能</label>
    </div>
    <div class="top-menu">
      <input type="radio" name="selectMode" id="mouseSelect"><label for="mouseSelect">始终开启划词翻译</label>
    </div>
    <div class="top-menu">
      <input type="radio" name="selectMode" id="useCtrl"><label for="useCtrl">使用“
        <select id="toggle-key">
          <option value="ctrl" id="ctrl-option">Ctrl</option>
          <option value="alt">Alt</option>
          <option value="shift">Shift</option>
        </select>
      + 划词”触发翻译功能</label>
    </div>
    <hr class="carved">
    <div class="top-menu">
      <input type="checkbox" name="autoAudio" id="autoAudio"><label for="autoAudio">划词后自动发音</label>
    </div>
    <div class="top-menu">
      <span class="sub-title">默认发音 --</span> 
      <input type="radio" name="defaultVoice" id="defaultUk" class="sub-button"><label for="defaultUk" class="sub-label">英音</label>
      <input type="radio" name="defaultVoice" id="defaultUs" class="sub-button"><label for="defaultUs" class="sub-label">美音</label>   
    </div>
    <hr class="carved">
    <div class="sub-menu">
      <input type="radio" name="showPosition" value="side" id="showPositionSide"><label for="showPositionSide">翻译结果显示在浏览器边缘</label>
    </div>
    <div class="sub-menu">
      <input type="radio" name="showPosition" value="near" id="showPositionNear"><label for="showPositionNear">翻译结果显示在单词附近</label>
    </div>
    <div class="sub-menu">
      <input type="checkbox" name="autoHide" id="autoHide"><label for="showDuration"><b id="currentDuration"></b>秒后隐藏结果</label>
      <input type="range" name="showDuration" min="3" max="8" id="showDuration">
    </div>
  </div>
  
  <footer>
    <div class="setting-button link" id="setting-button" title="设置"></div>
    Powered By <img src="https://shared.youdao.com/dict/market/cidian-official/img/logo.64518706.png" alt="有道翻译">
    <div class="contact-info">
      <span id="score" class="link" title="亲，给个好评吧:)"></span>
      <span id="email" class="link" title="如有问题可以发邮件"></span>
      <span id="issue" class="link" title="在Github上提出问题或建议"></span>
      <span id="source" class="link" title="源码在这里，欢迎Fork"></span>
    </div>
  </footer>
  <script src="js/utility.js"></script>
  <script src="js/popup.js"></script>
</body>
</html>